﻿<!DOCTYPE html>
<html lang="{{ site.lang | default: "en-US" }}">
<head>
    <meta charset='utf-8'>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=640">
    <link href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
    <script src="https://code.jquery.com/jquery-3.4.1.slim.js" integrity="sha256-BTlTdQO9/fascB1drekrDVkaKd9PkwBymMlHOiG+qLI=" crossorigin="anonymous"></script>
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
    <link rel="stylesheet" href="{{ 'assets/template.css' | relative_url }}">
</head>

<body>
    <header class="masthead">
        <div class="container h-25">
            <div class="row h-25">
                <div class="col-sm-2 my-auto">
                    <div class="header-content mx-auto">
                        <h3>WIN-ACME</h3>
                    </div>
                </div>
                <div class="col-sm-6 my-auto">
                    <div class="header-content mx-auto">
                        <span>A simple ACMEv2 client for Windows (for use with Let's Encrypt et al.)</span>
                    </div>
                </div>
                <div class="col-sm-2 my-auto">
                    <div class="header-content mx-auto">
                        <a href="{{ site.github.latest_release.assets[3].browser_download_url }}" class="btn btn-outline btn-xl js-scroll-trigger">Download {{ site.github.latest_release.name | strip | remove: 'v' }}</a>
                    </div>
                </div>
            </div>
        </div>
    </header>

    <nav class="navbar navbar-expand-sm bg-dark navbar-dark">
        <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
            <span class="navbar-toggler-icon"></span>
        </button>
        <div class="collapse navbar-collapse" id="collapsibleNavbar">
            <ul class="navbar-nav">
                {% for item in site.data.sitemap.main %}
                <li class="nav-item">
                    <a class="nav-link" href="{{ item.url }}">{{ item.title }}</a>
                </li>
                {% endfor %}
                <li class="nav-item dropdown">
                    <a class="nav-link dropdown-toggle" data-toggle="dropdown" href="#" role="button" aria-haspopup="true" aria-expanded="false">Download</a>
                    <div class="dropdown-menu">
                        <a class="dropdown-item" href="{{ site.github.latest_release.assets[3].browser_download_url }}">{{ site.github.latest_release.name | strip | remove: 'v' }} (64-bit, pluggable) <strong>(recommended)</strong></a>
                        <a class="dropdown-item" href="{{ site.github.latest_release.assets[4].browser_download_url }}">{{ site.github.latest_release.name | strip | remove: 'v' }} (64-bit, trimmed)</a>
                        <a class="dropdown-item" href="{{ site.github.latest_release.assets[5].browser_download_url }}">{{ site.github.latest_release.name | strip | remove: 'v' }} (32-bit, pluggable)</a>
                        <a class="dropdown-item" href="{{ site.github.latest_release.assets[6].browser_download_url }}">{{ site.github.latest_release.name | strip | remove: 'v' }} (32-bit, trimmed)</a>
                        <a class="dropdown-item" href="{{ site.github.releases_url }}">Release notes</a>
                    </div>
                </li>
            </ul>
        </div>
    </nav>

    <div class="container py-3">
        <div class="row">
            {% if page.sidebar %}
                <div class="col-sm-4">
                    {% include sidebar.html %}
                </div>
                <div class="col-sm-8">
                    {{ content }}
                </div>
            {% else %}
                <div class="col">
                    {{ content }}
                </div>
            {% endif %}
        </div>
    </div>

    <footer>
        {% if site.github.is_project_page %}
        <p>this project by Wouter Tinus can be found on <a href="https://github.com/PKISharp/win-acme/">GitHub</a></p>
        {% endif %}
    </footer>

    {% if site.google_analytics %}
    <script>
        (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
        (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
        m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
        })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
        ga('create', '{{ site.google_analytics }}', 'auto');
        ga('send', 'pageview');
    </script>
    {% endif %}
</body>
</html>